# 将基础的nlu与实体合并。
with open("data/nlu_base.yml", "r", encoding='utf-8') as file1:
    lines = file1.readlines()
    with open("data/nlu.yml", "w", encoding='utf-8') as file2:
        for item in lines:
            file2.write(item)

with open("data/entities.yml", "r", encoding='utf-8') as file3:
    lines = file3.readlines()
    with open("data/nlu.yml", "a", encoding='utf-8') as file4:
        for item in lines:
            file4.write(item)
